/* fonts.h

Copyright (C) Alex S. (mailto: md5sum@alexsp.ru)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details
http://www.gnu.org/licenses/gpl-2.0.html.

You should have received a copy of the GNU General Public License
along with this program in the file gpl-2.0.txt;
if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */


#ifndef FONTS_H_
#define FONTS_H_

#include "glcd_boot.h"

const prog_uint8_t font_5x8_sp[] = {0,0,0,0,0};
const prog_uint8_t font_5x8[][5] = {
//		{0x08,0x08,0x3E,0x08,0x08},// +
//		{0x00,0x50,0x30,0x00,0x00},//,
//		{0x08,0x08,0x08,0x08,0x08},// -
//		{0x00,0x60,0x60,0x00,0x00},// .
//		{0x20,0x10,0x08,0x04,0x02},// /
		/*{0x3E,0x51,0x49,0x45,0x3E},// 0*/
		{0x3E,0x41,0x41,0x41,0x3E},// O - без черточки
		{0x00,0x42,0x7F,0x40,0x00},// 1
		{0x42,0x61,0x51,0x49,0x46},// 2
		{0x21,0x41,0x45,0x4B,0x31},// 3
		{0x18,0x14,0x12,0x7F,0x10},// 4
		{0x27,0x45,0x45,0x45,0x39},// 5
		{0x3C,0x4A,0x49,0x49,0x30},// 6
		{0x01,0x71,0x09,0x05,0x03},// 7
		{0x36,0x49,0x49,0x49,0x36},// 8
		{0x06,0x49,0x49,0x29,0x1E},// 9
		{0x00,0x36,0x36,0x00,0x00},// :
		{0,0,0,0,0},// пробел
};

//const prog_uint8_t font_dot2x2[]={0x3,0x3};

/*
const prog_uint8_t font_10x16[][2][10]={
		{{0x00,0xF8,0xFE,0x06,0x03,0x03,0x03,0x06,0xFE,0xF8},0{0x00,0x07,0x1F,0x18,0x30,0x30,0x30,0x18,0x1F,0x07}},
		{{0x00,0x00,0x00,0x0C,0x0C,0x0E,0xFF,0xFF,0x00,0x00},1{0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x3F,0x00,0x00}},
		{{0x00,0x0C,0x0E,0x07,0x83,0x83,0xC3,0xE7,0x7E,0x3C},2{0x00,0x38,0x3E,0x37,0x33,0x31,0x30,0x30,0x30,0x30}},
		{{0x00,0x18,0x1E,0x06,0xC3,0xC3,0xC3,0xE6,0xBE,0x18},3{0x00,0x06,0x1E,0x18,0x30,0x30,0x30,0x19,0x1F,0x06}},
		{{0x00,0x00,0xC0,0xF0,0x3C,0x0F,0xFF,0xFF,0x00,0x00},4{0x00,0x07,0x07,0x06,0x06,0x06,0x3F,0x3F,0x06,0x06}},
		{{0x00,0xF0,0xFF,0x6F,0x63,0x63,0x63,0xC3,0xC3,0x00},5{0x00,0x0C,0x1C,0x38,0x30,0x30,0x30,0x18,0x1F,0x07}},
		{{0x00,0xF8,0xFE,0xC6,0x63,0x63,0x63,0xC6,0xCE,0x08},6{0x00,0x07,0x1F,0x18,0x30,0x30,0x30,0x18,0x1F,0x07}},
		{{0x00,0x03,0x03,0x03,0x03,0x03,0xC3,0xF3,0x3F,0x0F},7{0x00,0x00,0x00,0x00,0x38,0x3F,0x07,0x00,0x00,0x00}},
		{{0x00,0x18,0xBE,0xE6,0xC3,0xC3,0xC3,0xE6,0xBE,0x18},8{0x00,0x06,0x1F,0x19,0x30,0x30,0x30,0x19,0x1F,0x06}},
		{{0x00,0x38,0xFE,0xC6,0x83,0x83,0x83,0xC6,0xFE,0xF8},9{0x00,0x04,0x1C,0x18,0x31,0x31,0x31,0x18,0x1F,0x07}},
		{{0x40,0x40,0x40,0x40,0x40,0x00,0x00,0x00,0x00,0x00},сильновниз{0x15,0x35,0x75,0x35,0x15,0x00,0x00,0x00,0x00,0x00}},
		{{0x40,0x40,0x40,0x40,0x40,0x00,0x00,0x00,0x00,0x00},вниз{0x01,0x03,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00}},
		{{0x40,0x40,0x40,0x40,0x40,0x00,0x00,0x00,0x00,0x00},равно{0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00}},
		{{0x40,0x60,0x70,0x60,0x40,0x00,0x00,0x00,0x00,0x00},вверх{0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00}},
		{{0x54,0x56,0x57,0x56,0x54,0x00,0x00,0x00,0x00,0x00},сильновверх{0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00}},
};
*/

/*
const prog_uint8_t font_12x16[][2][12] = {
		{{0x80,0xF0,0xF8,0xFC,0x1E,0x07,0x01,0xC1,0xFF,0xFE,0xF8,0x00},0{0x0F,0x3F,0x7F,0x41,0x40,0x70,0x3C,0x1F,0x0F,0x07,0x01,0x00}},
		{{0x00,0x00,0x00,0x00,0x00,0x02,0xC2,0xFE,0xFE,0xFF,0x0F,0x00},1{0x00,0x00,0x40,0x40,0x40,0x7C,0x7F,0x7F,0x47,0x40,0x40,0x00}},
		{{0x00,0x3C,0x3E,0x7A,0x31,0x01,0x81,0xE3,0xFF,0x7E,0x3C,0x00},2{0x60,0x70,0x78,0x7C,0x76,0x73,0x71,0x71,0x70,0x78,0x1C,0x00}},
		{{0x00,0x00,0x1C,0x1E,0x9F,0x99,0x81,0x63,0x7F,0x7E,0x1C,0x00},3{0x1C,0x3C,0x5C,0x48,0x40,0x60,0x70,0x3F,0x3F,0x0E,0x00,0x00}},
		{{0x00,0x80,0xC0,0x60,0x30,0x98,0xFC,0xFE,0xFF,0x1F,0x01,0x00},4{0x07,0x47,0x44,0x44,0x7C,0x7F,0x7F,0x4F,0x44,0x04,0x00,0x00}},
		{{0x00,0xC0,0xE0,0x3E,0x27,0x27,0x67,0xE7,0xC7,0x83,0x01,0x00},5{0x1C,0x3E,0x5E,0x40,0x40,0x60,0x70,0x3F,0x1F,0x07,0x00,0x00}},
		{{0x80,0xF0,0xF8,0xFC,0x4E,0x43,0xC1,0xCD,0x9F,0x0F,0x0E,0x00},6{0x1F,0x3F,0x7F,0x41,0x40,0x60,0x3F,0x1F,0x0F,0x00,0x00,0x00}},
		{{0x18,0x0F,0x07,0x07,0x07,0xC7,0xE7,0x37,0x0F,0x07,0x01,0x00},7{0x00,0x30,0x7C,0x7E,0x3F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00}},
		{{0x00,0x3C,0x7E,0xFE,0xE3,0xE1,0xC1,0xC1,0xA3,0x3E,0x1C,0x00},8{0x3E,0x7F,0x63,0x40,0x41,0x41,0x63,0x3F,0x3F,0x0F,0x00,0x00}},
		{{0x00,0x78,0xFC,0xFE,0xFF,0x03,0x01,0xC1,0xFF,0xFE,0xFC,0x00},9{0x38,0x7C,0x78,0x51,0x41,0x61,0x39,0x1F,0x0F,0x07,0x00,0x00}}
};
*/

/*
const prog_uint8_t font_3x5[][3] = {
		{0x1F,0x11,0x1F},0
		{0x12,0x1F,0x10},1
		{0x1D,0x15,0x17},2
		{0x15,0x15,0x1F},3
		{0x07,0x04,0x1F},4
		{0x17,0x15,0x1D},5
		{0x1F,0x15,0x1D},6
		{0x01,0x19,0x07},7
		{0x1F,0x15,0x1F},8
		{0x17,0x15,0x1F},9
};
*/


/*
const prog_uint8_t month_15x8[][15]={
		{0x58,0x24,0x24,0x7C,0x7C,0x00,0x7C,0x10,0x10,0x7C,0x00,0x7C,0x54,0x54,0x28},янв
		{0x18,0x24,0x7E,0x24,0x18,0x00,0x7C,0x54,0x54,0x44,0x00,0x7C,0x54,0x54,0x28},фев
		{0x7C,0x08,0x10,0x08,0x7C,0x00,0x78,0x24,0x24,0x7C,0x00,0x7C,0x24,0x24,0x18},мар
		{0x70,0x28,0x24,0x24,0x7C,0x00,0x7C,0x04,0x04,0x7C,0x00,0x7C,0x24,0x24,0x18},апр
		{0x7C,0x08,0x10,0x08,0x7C,0x00,0x78,0x24,0x24,0x7C,0x00,0x7C,0x21,0x11,0x7C},май
		{0x7C,0x20,0x10,0x7C,0x00,0x7C,0x10,0x38,0x44,0x38,0x00,0x7C,0x10,0x10,0x7C},июн
		{0x7C,0x20,0x10,0x7C,0x00,0x7C,0x10,0x38,0x44,0x38,0x00,0x70,0x08,0x04,0x7C},июл
		{0x70,0x28,0x24,0x7C,0x7C,0x00,0x7C,0x54,0x54,0x28,0x00,0x7C,0x04,0x04,0x04},авг
		{0x38,0x7C,0x44,0x44,0x28,0x00,0x7C,0x54,0x54,0x44,0x00,0x7C,0x10,0x10,0x7C},сен
		{0x38,0x44,0x44,0x7C,0x38,0x00,0x7C,0x10,0x28,0x44,0x00,0x04,0x7C,0x04,0x00},окт
		{0x7C,0x10,0x10,0x7C,0x7C,0x00,0x38,0x44,0x44,0x38,0x00,0x58,0x24,0x24,0x7C},ноя
		{0x60,0x38,0x24,0x24,0x3C,0x60,0x00,0x7C,0x54,0x44,0x00,0x7C,0x10,0x28,0x44}дек
};
*/

/*
const prog_uint8_t bootl_128x16[2][128] ={
		{		0x00,0xF0,0xF0,0x30,0x30,0x30,0xF0,0xE0,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xC0,
				0x80,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xC0,0x80,0x00,0x00,0x00,0xF0,0xF0,0xC0,
				0xC0,0xC0,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,
				0xC0,0x80,0x00,0x00,0x00,0x00,0xC0,0xC0,0xC0,0xC0,0x80,0x00,0x00,0x00,0x80,0xC0,
				0xC0,0xC0,0xFC,0xFC,0x00,0x00,0x00,0x80,0xC0,0xC0,0xC0,0x80,0x00,0x00,0x00,0xC0,
				0xC0,0xC0,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,
				0xC0,0xC0,0x80,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xC0,0x80,0x00,0x00,0x00,0x00,
				0x80,0xC0,0xC0,0xC0,0xFC,0xFC,0x00,0x00,0x00,0x80,0xC0,0xC0,0xC0,0x80,0x00,0x00},
		{		0x00,0x3F,0x3F,0x33,0x33,0x33,0x33,0x1E,0x1C,0x00,0x00,0x0F,0x1F,0x30,0x30,0x30,
				0x1F,0x0F,0x00,0x00,0x0F,0x1F,0x30,0x30,0x30,0x1F,0x0F,0x00,0x00,0x1F,0x3F,0x30,
				0x30,0x30,0x00,0x00,0x3F,0x3F,0x30,0x30,0x30,0x30,0x30,0x00,0x0F,0x1F,0x30,0x30,
				0x30,0x1F,0x0F,0x00,0x00,0x1C,0x3E,0x36,0x36,0x3F,0x3F,0x00,0x00,0x0F,0x1F,0x30,
				0x30,0x30,0x3F,0x3F,0x00,0x00,0x0F,0x1F,0x36,0x36,0x36,0x37,0x37,0x00,0x00,0x3F,
				0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x3F,0x00,0x00,0x3F,0x3F,0x00,
				0x00,0x3F,0x3F,0x00,0x00,0x00,0x0F,0x1F,0x30,0x30,0x30,0x1F,0x0F,0x00,0x00,0x0F,
				0x1F,0x30,0x30,0x30,0x3F,0x3F,0x00,0x00,0x0F,0x1F,0x36,0x36,0x36,0x37,0x37,0x00}};
*/

const prog_uint8_t FW_upgr_128x24[3][128]={
		{0x00,0x00,0x00,0xFF,0xFF,0x33,0x33,0x33,0x33,0x33,0x00,0x00,0xFF,0xFF,0x00,0x00,0xFC,0xFC,0x18,0x0C,0x00,0xFC,0xFC,0x08,0x0C,0xFC,0xF8,0x08,0x0C,0x1C,0xF8,0xF0,0x0C,0xFC,0xF0,0x80,0xFC,0x1C,0xF8,0x00,0xF8,0x7C,0x04,0x80,0xD8,0x5C,0x4C,0x6C,0xF8,0xF8,0x00,0x00,0xFC,0xFC,0x18,0x0C,0xE0,0xF8,0x58,0x4C,0x4C,0x78,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,0x00,0x00,0x00,0xFC,0xFC,0x00,0x00,0xFC,0xFC,0x08,0x0C,0x0C,0xF8,0xF0,0x00,0x40,0xF8,0xB8,0x0C,0x0C,0x18,0xFC,0xFC,0x00,0x00,0xFC,0xFC,0x18,0x0C,0x80,0xD8,0x5C,0x4C,0x6C,0xF8,0xF8,0x00,0x60,0xF8,0x98,0x0C,0x0C,0x98,0xFF,0xFF,0x00,0xE0,0xF8,0x58,0x4C,0x4C,0x78,0x70,0x00,0x00,0x00,0x00},
		{0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x03,0x03,0x01,0x00,0x03,0x03,0x03,0x00,0x00,0x01,0x83,0x83,0x02,0x83,0x83,0x03,0x00,0x80,0x83,0x03,0x00,0x00,0x00,0x03,0x83,0x82,0x82,0x03,0x01,0x00,0x00,0x00,0x00,0x80,0x80,0x03,0xE3,0xE2,0x02,0x01,0x03,0x03,0x80,0x80,0x1F,0x1F,0x03,0x02,0x03,0x03,0x01,0x00,0x00,0x09,0x1B,0x12,0x12,0x19,0x0F,0x07,0x00,0x00,0x03,0x03,0x00,0x00,0x01,0x03,0x03,0x02,0x03,0x03,0x03,0x00,0x00,0x01,0x03,0x02,0x02,0x01,0x03,0x03,0x00,0x00,0x03,0x03,0x02,0x02,0x03,0x01,0x00,0x00,0x00,0x00},
		{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x01,0x01,0x7F,0x7F,0x01,0x01,0x03,0x7F,0x7E,0x08,0x3F,0x77,0x41,0x41,0x63,0x7F,0x3E,0x00,0x0C,0x3F,0x73,0x41,0x41,0x33,0x7F,0x7F,0x00,0x1C,0x7F,0x6B,0x49,0x49,0x6F,0x2E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
};

const prog_uint8_t prot_stk500[80]={0xFC,0x44,0x44,0x38,0x00,0x7C,0x04,0x04,0x00,0x38,0x44,0x44,0x38,0x00,0x3E,0x44,0x44,0x00,0x38,0x44,0x44,0x38,0x00,0x38,0x44,0x44,0x28,0x00,0x38,0x44,0x44,0x38,0x00,0x7E,0x40,0x00,0x14,0x00,0x00,0x26,0x49,0x51,0x22,0x00,0x01,0x01,0x7F,0x01,0x01,0x00,0x7F,0x14,0x22,0x41,0x00,0x47,0x45,0x45,0x39,0x00,0x3E,0x41,0x41,0x3E,0x00,0x3E,0x41,0x41,0x3E,0x00,0x06,0x38,0x40,0x38,0x06,0x00,0x62,0x51,0x49,0x46};
const prog_uint8_t set_serial_a[27]= {0x58,0x54,0x34,0x00,0x38,0x54,0x54,0x58,0x00,0x7C,0x04,0x04,0x00,0x7D,0x00,0x24,0x54,0x54,0x78,0x00,0x3F,0x40,0x40,0x40,0x00,0x14,0x00};
const prog_uint8_t set_serial_b[32]= {0x00,0x3E,0x41,0x41,0x3E,0x00,0x3E,0x41,0x41,0x3E,0x80,0x40,0x00,0x36,0x49,0x49,0x36,0x80,0x40,0x00,0x7F,0x04,0x08,0x10,0x7F,0x00,0x80,0x40,0x00,0x00,0x02,0x7F};
const prog_uint8_t set_serial_s[3][14]={{0x41,0x49,0x49,0x36,0x00,0x36,0x49,0x49,0x36,0x00,0x0F,0x08,0x08,0x7F},
{0x00,0x00,0x02,0x7F,0x00,0x26,0x49,0x49,0x3E,0x00,0x32,0x49,0x49,0x46},
{0x00,0x00,0x00,0x00,0x00,0x26,0x49,0x49,0x3E,0x00,0x3E,0x49,0x49,0x32}};

const prog_uint8_t load_prog[19]={0x7F,0x40,0x40,0x40,0x00,0x38,0x44,0x44,0x38,0x00,0x24,0x54,0x54,0x38,0x00,0x38,0x44,0x44,0x3F};
//const prog_uint8_t bytes_prog[24]={0x3F,0x44,0x44,0x38,0x00,0x9C,0xA0,0xA0,0x7C,0x00,0x04,0x3F,0x44,0x40,0x00,0x38,0x54,0x54,0x48,0x00,0x08,0x54,0x54,0x20};
const prog_uint8_t KiB[9]={0x7C,0x10,0x28,0x44,0x00,0x7F,0x49,0x49,0x36};
const prog_uint8_t verified[34]={0x07,0x38,0x40,0x38,0x07,0x00,0x38,0x54,0x54,0x48,0x00,0x7C,0x08,0x04,0x04,0x00,0x7D,0x00,0x08,0x7F,0x09,0x00,0x00,0x7D,0x00,0x38,0x54,0x54,0x48,0x00,0x38,0x44,0x44,0x3F};

#endif/*FONTS_H_*/

